package com.learnspringcloud.product.utils;

import com.learnspringcloud.product.VO.ResultVO;
import com.learnspringcloud.product.enums.ResultEnum;

/**
 * @author Lin
 * @date 2018/9/21 0021
 */
public class ResultVOUtil {
    public static ResultVO success(Object object) {
        ResultVO resultVO = new ResultVO<>();
        resultVO.setData(object);
        resultVO.setCode(ResultEnum.SUCCESS.getCode());
        resultVO.setMessage("成功");
        return resultVO;
    }
}
